<?php
//require_once(APPPATH . '/controllers/test/Toast.php');

class Example_tests extends Toast
{

	public function __construct(){
		parent::__construct(__FILE__,"core");
}

	public function test_simple_addition()
	{
		$var = 2 + 2;
		$this->_assert_equals($var, 4);
	}
	public  function test_simple_addition_again()
	{
		$var = 2 + 2;
		$this->_assert_equals($var, 1);
                $i=0;
	}


	public  function test_that_fails()
	{
		$a = true;
		$b = $a;

		// You can test multiple assertions / variables in one function:



		$this->_assert_equals($a, $b); // true
                $this->user_msg =" mine too ";
		// Since one of the assertions failed, this test case will fail
	}


	public function test_or_operator()
	{
		$a = true;
		$b = false;
		$var = $a || $b;

		$this->_assert_true($var);

		// If you need to, you can pass a message /
		// description to the unit test results page:

		$this->user_msg = '$a || $b';
	}

}

// End of file example_test.php */
// Location: ./system/application/controllers/test/example_test.php */